import { lazy } from "react";


const reouters = [
    {
        path:"/home",
        component:lazy(()=>import('../page/home/Home')),
        children:[
            {
                path:'/home/index',
                component:lazy(()=>import('../page/home/index/Index'))
            },
            {
                path:'/home/books',
                component:lazy(()=>import('../page/home/books/Books'))
            },
            {
                path:'/home/lookes',
                component:lazy(()=>import('../page/home/lookes/Lookes'))
            },
            {
                path:'/home/my',
                component:lazy(()=>import('../page/home/my/My'))
            },
            {
                path:'/home',
                to:'/home/index'
            }
        ]
    },
    {
        path:"/login",
        component:lazy(()=>import('../page/login/Login'))
    },
    {
        path:'/topour/:id',
        component:lazy(()=>import('../page/topour/Topour'))
    },
    {
        path:'/',
        to:'/home'
    }
]

export default reouters



